package tpo.lmhconsumer.lmhconsumer.service.impl;

import dto.Dto;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import tpo.lmhconsumer.lmhconsumer.feign.UnitClient;
import tpo.lmhconsumer.lmhconsumer.service.UnitService;

import java.util.Map;

@Service
public class UnitServiceImpl implements UnitService {
    @Autowired
    UnitClient unitClient;

    @Override
    public Dto getUnit(Map map) {
        return unitClient.getUnit(map);
    }

    @Override
    public Dto updateUnit(Map map) {
        return unitClient.updateUnit(map);
    }

    @Override
    public Dto addUnit(Map map) {
        return unitClient.addUnit(map);
    }

    @Override
    public Dto delUnit(Map map) {
        return unitClient.delUnit(map);
    }
}
